package com.haibara.codesandbox.model.enums;

import lombok.Getter;

/**
 * 判题信息消息枚举
 *
 * @author 大蠢驴
 * @since 2023/08/15
 */
@Getter
public enum JudgeResultEnum {
    /**
     * 判题消息
     */
    ACCEPTED("Accepted", 0),
    WRONG_ANSWER("Wrong Answer", 1),
    MEMORY_LIMIT_EXCEEDED("Memory Limit Exceeded", 2),
    TIME_LIMIT_EXCEEDED("Time Limit Exceeded", 3),
    WAITING("Waiting", 4),
    DANGEROUS_CODE("Dangerous Code", 5),
    RUNTIME_ERROR("Runtime Error", 6),
    SYSTEM_ERROR("System Error", 7);

    private final String text;

    private final Integer value;

    JudgeResultEnum(String text, Integer value) {
        this.text = text;
        this.value = value;
    }
}
